home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_usrdoc / MAILX / MANUAL.TXT < prev   
Text File  |  1999-09-17  |  84KB  |  2,641 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.                    MMAAIILL RREEFFEERREENNCCEE MMAANNUUAALL
  16.  
  17.  
  18.  
  19.  
  20.                         _K_u_r_t _S_h_o_e_n_s
  21.  
  22.  
  23.                          Revised by
  24.  
  25.  
  26.                 _C_r_a_i_g _L_e_r_e_s and _M_a_r_k _A_n_d_r_e_w_s
  27.  
  28.  
  29.                         Version 5.5
  30.  
  31.  
  32.                        June 25, 1998
  33.  
  34.  
  35. 11..  IInnttrroodduuccttiioonn
  36.  
  37.      _M_a_i_l  provides  a  simple  and friendly environment for
  38. sending and receiving mail.  It divides incoming  mail  into
  39. its  constituent  messages  and allows the user to deal with
  40. them in any order.  In addition, it provides a  set  of  _e_d-
  41. like  commands  for  manipulating messages and sending mail.
  42. _M_a_i_l offers the user simple editing capabilities to ease the
  43. composition  of  outgoing messages, as well as providing the
  44. ability to define and send to names which address groups  of
  45. users.   Finally,  _M_a_i_l is able to send and receive messages
  46. across such networks as the ARPANET, UUCP, and Berkeley net-
  47. work.
  48.  
  49.      This  document describes how to use the _M_a_i_l program to
  50. send and receive messages.  The reader is not assumed to  be
  51. familiar  with other message handling systems, but should be
  52. familiar with the UNIX1 shell, the text editor, and some  of
  53. the  common  UNIX commands.  "The UNIX Programmer's Manual,"
  54. "An Introduction to Csh," and "Text Editing with Ex and  Vi"
  55. can be consulted for more information on these topics.
  56.  
  57. ____________________
  58.    1 UNIX is a trademark of Bell Laboratories.
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71. UUSSDD::77--22                                MMaaiill RReeffeerreennccee MMaannuuaall
  72.  
  73.  
  74.      Here  is  how  messages  are  handled:  the mail system
  75. accepts incoming _m_e_s_s_a_g_e_s for you from other people and col-
  76. lects  them in a file, called your _s_y_s_t_e_m _m_a_i_l_b_o_x.  When you
  77. login, the system notifies you if  there  are  any  messages
  78. waiting  in your system mailbox.  If you are a _c_s_h user, you
  79. will be notified when new mail arrives  if  you  inform  the
  80. shell  of  the  location of your mailbox.  On version 7 sys-
  81. tems, your  system  mailbox  is  located  in  the  directory
  82. /usr/spool/mail  in  a  file  with your login name.  If your
  83. login name is "sam," then you can make _c_s_h notify you of new
  84. mail by including the following line in your .cshrc file:
  85.  
  86.     set mail=/usr/spool/mail/sam
  87.  
  88. When  you  read  your  mail using _M_a_i_l, it reads your system
  89. mailbox and separates that file into the individual messages
  90. that  have  been  sent to you.  You can then read, reply to,
  91. delete, or save these messages.  Each message is marked with
  92. its author and the date they sent it.
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137. MMaaiill RReeffeerreennccee MMaannuuaall                                UUSSDD::77--33
  138.  
  139.  
  140. 22..  CCoommmmoonn uussaaggee
  141.  
  142.      The  _M_a_i_l command has two distinct usages, according to
  143. whether one wants to send or receive mail.  Sending mail  is
  144. simple:   to  send  a message to a user whose login name is,
  145. say, "root," use the shell command:
  146.  
  147.     % Mail root
  148.  
  149. then type your message.  When you reach the end of the  mes-
  150. sage,  type  an  EOT (control-d) at the beginning of a line,
  151. which will cause _M_a_i_l to echo "EOT" and return  you  to  the
  152. Shell.  When the user you sent mail to next logs in, he will
  153. receive the message:
  154.  
  155.     You have mail.
  156.  
  157. to alert him to the existence of your message.
  158.  
  159.      If, while you are composing the message you decide that
  160. you do not wish to send it after all, you can abort the let-
  161. ter with a RUBOUT.  Typing a single RUBOUT  causes  _M_a_i_l  to
  162. print
  163.  
  164.     (Interrupt -- one more to kill letter)
  165.  
  166. Typing a second RUBOUT causes _M_a_i_l to save your partial let-
  167. ter on the file "dead.letter" in  your  home  directory  and
  168. abort the letter.  Once you have sent mail to someone, there
  169. is no way to undo the act, so be careful.
  170.  
  171.      The message your recipient reads will  consist  of  the
  172. message  you  typed, preceded by a line telling who sent the
  173. message (your login name) and the date and time it was sent.
  174.  
  175.      If  you  want to send the same message to several other
  176. people, you can list their login names on the command  line.
  177. Thus,
  178.  
  179.     % Mail sam bob john
  180.     Tuition fees are due next Friday.  Don't forget!!
  181.     <Control-d>
  182.     EOT
  183.     %
  184.  
  185. will send the reminder to sam, bob, and john.
  186.  
  187.      If, when you log in, you see the message,
  188.  
  189.     You have mail.
  190.  
  191. you can read the mail by typing simply:
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203. UUSSDD::77--44                                MMaaiill RReeffeerreennccee MMaannuuaall
  204.  
  205.  
  206.     % Mail
  207.  
  208. _M_a_i_l  will respond by typing its version number and date and
  209. then listing the messages you have waiting.   Then  it  will
  210. type  a  prompt  and  await  your command.  The messages are
  211. assigned numbers starting with 1 -- you refer  to  the  mes-
  212. sages  with  these  numbers.  _M_a_i_l keeps track of which mes-
  213. sages are _n_e_w (have been sent since you last read your mail)
  214. and  _r_e_a_d  (have  been read by you).  New messages have an NN
  215. next to them in the header listing and old, but unread  mes-
  216. sages  have  a  UU next to them.  _M_a_i_l keeps track of new/old
  217. and read/unread messages by putting a  header  field  called
  218. "Status" into your messages.
  219.  
  220.      To  look  at  a specific message, use the ttyyppee command,
  221. which may be abbreviated to simply tt.  For example,  if  you
  222. had the following messages:
  223.  
  224.     N 1 root     Wed Sep 21 09:21  "Tuition fees"
  225.     N 2 sam      Tue Sep 20 22:55
  226.  
  227. you could examine the first message by giving the command:
  228.  
  229.     type 1
  230.  
  231. which might cause _M_a_i_l to respond with, for example:
  232.  
  233.     Message  1:
  234.     From root  Wed Sep 21 09:21:45 1978
  235.     Subject: Tuition fees
  236.     Status: R
  237.  
  238.     Tuition fees are due next Wednesday.  Don't forget!!
  239.  
  240.  
  241. Many  _M_a_i_l  commands that operate on messages take a message
  242. number as an argument like the ttyyppee command.  For these com-
  243. mands,  there  is  a  notion of a current message.  When you
  244. enter the _M_a_i_l program, the current message is initially the
  245. first  one.  Thus, you can often omit the message number and
  246. use, for example,
  247.  
  248.     t
  249.  
  250. to type the current message.  As a  further  shorthand,  you
  251. can  type  a  message  by  simply giving its message number.
  252. Hence,
  253.  
  254.     1
  255.  
  256. would type the first message.
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269. MMaaiill RReeffeerreennccee MMaannuuaall                                UUSSDD::77--55
  270.  
  271.  
  272.      Frequently, it is useful to read the messages  in  your
  273. mailbox  in order, one after another.  You can read the next
  274. message in _M_a_i_l by simply typing a newline.   As  a  special
  275. case,  you  can type a newline as your first command to _M_a_i_l
  276. to type the first message.
  277.  
  278.      If, after typing a message,  you  wish  to  immediately
  279. send  a reply, you can do so with the rreeppllyy command.  RReeppllyy,
  280. like ttyyppee, takes a message number as an argument.  _M_a_i_l then
  281. begins a message addressed to the user who sent you the mes-
  282. sage.  You may then type in your letter in  reply,  followed
  283. by  a  <control-d>  at  the  beginning of a line, as before.
  284. _M_a_i_l will type EOT, then type the ampersand prompt to  indi-
  285. cate  its readiness to accept another command.  In our exam-
  286. ple, if, after typing the first message, you wished to reply
  287. to it, you might give the command:
  288.  
  289.     reply
  290.  
  291. _M_a_i_l responds by typing:
  292.  
  293.     To: root
  294.     Subject: Re: Tuition fees
  295.  
  296. and  waiting  for  you to enter your letter.  You are now in
  297. the message collection mode described at  the  beginning  of
  298. this  section  and  _M_a_i_l will gather up your message up to a
  299. control-d.  Note that it copies the subject header from  the
  300. original  message.   This  is  useful in that correspondence
  301. about a particular matter will tend to retain the same  sub-
  302. ject  heading,  making  it  easy to recognize.  If there are
  303. other header fields in the message,  the  information  found
  304. will  also  be used.  For example, if the letter had a "To:"
  305. header listing several recipients,  _M_a_i_l  would  arrange  to
  306. send  your replay to the same people as well.  Similarly, if
  307. the original message contained a "Cc:"  (carbon  copies  to)
  308. field, _M_a_i_l would send your reply to _t_h_o_s_e users, too.  _M_a_i_l
  309. is careful, though, not too send the message to _y_o_u, even if
  310. you appear in the "To:" or "Cc:" field, unless you ask to be
  311. included explicitly.  See section 4 for more details.
  312.  
  313.      After typing in your letter, the dialog with _M_a_i_l might
  314. look like the following:
  315.  
  316.     reply
  317.     To: root
  318.     Subject: Tuition fees
  319.  
  320.     Thanks for the reminder
  321.     EOT
  322.     &
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335. UUSSDD::77--66                                MMaaiill RReeffeerreennccee MMaannuuaall
  336.  
  337.  
  338.      The  rreeppllyy  command is especially useful for sustaining
  339. extended conversations over the message system,  with  other
  340. "listening" users receiving copies of the conversation.  The
  341. rreeppllyy command can be abbreviated to rr.
  342.  
  343.      Sometimes you will receive a message that has been sent
  344. to  several  people and wish to reply _o_n_l_y to the person who
  345. sent it.  RReeppllyy with a capital RR replies to a  message,  but
  346. sends a copy to the sender only.
  347.  
  348.      If you wish, while reading your mail, to send a message
  349. to someone, but not as a reply to one of your messages,  you
  350. can  send  the message directly with the mmaaiill command, which
  351. takes as arguments the names of the recipients you  wish  to
  352. send  to.   For  example,  to send a message to "frank," you
  353. would do:
  354.  
  355.     mail frank
  356.     This is to confirm our meeting next Friday at 4.
  357.     EOT
  358.     &
  359.  
  360. The mmaaiill command can be abbreviated to mm.
  361.  
  362.      Normally, each message you receive is saved in the file
  363. _m_b_o_x  in  your  login  directory at the time you leave _M_a_i_l.
  364. Often, however, you will not want to save a particular  mes-
  365. sage  you have received because it is only of passing inter-
  366. est.  To avoid saving a message in _m_b_o_x you  can  delete  it
  367. using the ddeelleettee command.  In our example,
  368.  
  369.     delete 1
  370.  
  371. will prevent _M_a_i_l from saving message 1 (from root) in _m_b_o_x.
  372. In addition to not saving deleted messages,  _M_a_i_l  will  not
  373. let  you  type them, either.  The effect is to make the mes-
  374. sage disappear  altogether,  along  with  its  number.   The
  375. ddeelleettee command can be abbreviated to simply dd.
  376.  
  377.      Many  features  of  _M_a_i_l can be tailored to your liking
  378. with the sseett  command.   The  sseett  command  has  two  forms,
  379. depending  on  whether  you are setting a _b_i_n_a_r_y option or a
  380. _v_a_l_u_e_d option.  Binary options are either on  or  off.   For
  381. example,  the  "ask"  option informs _M_a_i_l that each time you
  382. send a message, you want it to  prompt  you  for  a  subject
  383. header,  to  be  included  in the message.  To set the "ask"
  384. option, you would type
  385.  
  386.     set ask
  387.  
  388.  
  389.      Another useful _M_a_i_l option is "hold."  Unless told oth-
  390. erwise,  _M_a_i_l moves the messages from your system mailbox to
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401. MMaaiill RReeffeerreennccee MMaannuuaall                                UUSSDD::77--77
  402.  
  403.  
  404. the file _m_b_o_x in your home directory when  you  leave  _M_a_i_l.
  405. If  you want _M_a_i_l to keep your letters in the system mailbox
  406. instead, you can set the "hold" option.
  407.  
  408.      Valued options are values which _M_a_i_l uses to  adapt  to
  409. your  tastes.   For  example,  the "SHELL" option tells _M_a_i_l
  410. which shell you like to use, and is specified by
  411.  
  412.     set SHELL=/bin/csh
  413.  
  414. for  example.   Note  that  no   spaces   are   allowed   in
  415. "SHELL=/bin/csh."   A  complete  list  of  the  _M_a_i_l options
  416. appears in section 5.
  417.  
  418.      Another important valued option is "crt."  If you use a
  419. fast  video terminal, you will find that when you print long
  420. messages, they fly by too quickly  for  you  to  read  them.
  421. With  the  "crt" option, you can make _M_a_i_l print any message
  422. larger than a given number of lines by sending it through  a
  423. paging  program.  This  program  is  specified by the valued
  424. option PPAAGGEERR.  If PPAAGGEERR is not set, a default  paginator  is
  425. used.   For  example,  most  CRT  users with 24-line screens
  426. should do:
  427.  
  428.     set crt=24
  429.  
  430. to paginate messages that will not fit on their screens.  In
  431. the default state, _m_o_r_e (default paginator) prints a screen-
  432. ful of information, then types --More--.  Type  a  space  to
  433. see the next screenful.
  434.  
  435.      Another  adaptation to user needs that _M_a_i_l provides is
  436. that of _a_l_i_a_s_e_s.  An alias is simply a name which stands for
  437. one  or  more  real  user  names.   _M_a_i_l sent to an alias is
  438. really sent to the list of real users  associated  with  it.
  439. For  example,  an  alias can be defined for the members of a
  440. project, so that you can send mail to the whole  project  by
  441. sending  mail  to  just a single name.  The aalliiaass command in
  442. _M_a_i_l defines an alias.  Suppose that the users in a  project
  443. are  named Sam, Sally, Steve, and Susan.  To define an alias
  444. called "project" for them, you would use the _M_a_i_l command:
  445.  
  446.     alias project sam sally steve susan
  447.  
  448. The aalliiaass command can also be used to provide  a  convenient
  449. name for someone whose user name is inconvenient.  For exam-
  450. ple, if a user named  "Bob  Anderson"  had  the  login  name
  451. "anderson,"" you might want to use:
  452.  
  453.     alias bob anderson
  454.  
  455. so that you could send mail to the shorter name, "bob."
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467. UUSSDD::77--88                                MMaaiill RReeffeerreennccee MMaannuuaall
  468.  
  469.  
  470.      While the aalliiaass and sseett commands allow you to customize
  471. _M_a_i_l, they have the drawback that they must be retyped  each
  472. time  you  enter _M_a_i_l.  To make them more convenient to use,
  473. _M_a_i_l always looks for two files  when  it  is  invoked.   It
  474. first  reads  a  system wide file "/usr/lib/Mail.rc," then a
  475. user specific file, ".mailrc," which is found in the  user's
  476. home  directory.   The system wide file is maintained by the
  477. system administrator and  contains  sseett  commands  that  are
  478. applicable  to  all users of the system.  The ".mailrc" file
  479. is usually used by each user to set options the way he likes
  480. and define individual aliases.  For example, my .mailrc file
  481. looks like this:
  482.  
  483.     set ask nosave SHELL=/bin/csh
  484.  
  485. As you can see, it is possible to set many  options  in  the
  486. same  sseett command.  The "nosave" option is described in sec-
  487. tion 5.
  488.  
  489.      Mail aliasing is implemented at the  system-wide  level
  490. by  the  mail  delivery  system _s_e_n_d_m_a_i_l.  These aliases are
  491. stored in the file /usr/lib/aliases and  are  accessible  to
  492. all  users of the system.  The lines in /usr/lib/aliases are
  493. of the form:
  494.  
  495.     alias: name1, name2, name3
  496.  
  497. where _a_l_i_a_s is the mailing list name and the _n_a_m_e_i  are  the
  498. members  of  the list.  Long lists can be continued onto the
  499. next line by starting the next line with  a  space  or  tab.
  500. Remember  that you must execute the shell command _n_e_w_a_l_i_a_s_e_s
  501. after editing /usr/lib/aliases  since  the  delivery  system
  502. uses an indexed file created by _n_e_w_a_l_i_a_s_e_s.
  503.  
  504.      We have seen that _M_a_i_l can be invoked with command line
  505. arguments which are people to send the message to,  or  with
  506. no  arguments  to  read mail.  Specifying the --ff flag on the
  507. command line causes _M_a_i_l to read messages from a file  other
  508. than  your  system mailbox.  For example, if you have a col-
  509. lection of messages in the file "letters" you can  use  _M_a_i_l
  510. to read them with:
  511.  
  512.     % Mail -f letters
  513.  
  514. You can use all the _M_a_i_l commands described in this document
  515. to examine, modify, or delete messages from  your  "letters"
  516. file,  which  will be rewritten when you leave _M_a_i_l with the
  517. qquuiitt command described below.
  518.  
  519.      Since mail that you read is saved in the file  _m_b_o_x  in
  520. your  home  directory  by default, you can read _m_b_o_x in your
  521. home directory by using simply
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533. MMaaiill RReeffeerreennccee MMaannuuaall                                UUSSDD::77--99
  534.  
  535.  
  536.     % Mail -f
  537.  
  538.  
  539.      Normally, messages that you examine using the ttyyppee com-
  540. mand  are saved in the file "mbox" in your home directory if
  541. you leave _M_a_i_l with the qquuiitt command  described  below.   If
  542. you  wish to retain a message in your system mailbox you can
  543. use the pprreesseerrvvee command to tell _M_a_i_l  to  leave  it  there.
  544. The pprreesseerrvvee command accepts a list of message numbers, just
  545. like ttyyppee and may be abbreviated to pprree.
  546.  
  547.      Messages in your system mailbox that you do not examine
  548. are  normally retained in your system mailbox automatically.
  549. If you wish to have such a message  saved  in  _m_b_o_x  without
  550. reading  it,  you  may  use the mmbbooxx command to have them so
  551. saved.  For example,
  552.  
  553.     mbox 2
  554.  
  555. in our example would cause the second message (from sam)  to
  556. be saved in _m_b_o_x when the qquuiitt command is executed.  MMbbooxx is
  557. also the way to direct messages to your  _m_b_o_x  file  if  you
  558. have  set  the  "hold"  option described above.  MMbbooxx can be
  559. abbreviated to mmbb.
  560.  
  561.      When you have perused all the messages of interest, you
  562. can  leave  _M_a_i_l with the qquuiitt command, which saves the mes-
  563. sages you have typed but not deleted in  the  file  _m_b_o_x  in
  564. your  login directory.  Deleted messages are discarded irre-
  565. trievably, and messages left untouched are preserved in your
  566. system  mailbox  so that you will see them the next time you
  567. type:
  568.  
  569.     % Mail
  570.  
  571. The qquuiitt command can be abbreviated to simply qq.
  572.  
  573.      If you wish for some reason to leave _M_a_i_l quickly with-
  574. out  altering  either  your  system mailbox or _m_b_o_x, you can
  575. type the xx command (short for eexxiitt), which will  immediately
  576. return you to the Shell without changing anything.
  577.  
  578.      If,  instead, you want to execute a Shell command with-
  579. out leaving _M_a_i_l, you can type the command  preceded  by  an
  580. exclamation  point,  just  as in the text editor.  Thus, for
  581. instance:
  582.  
  583.     !date
  584.  
  585. will print the current date without leaving _M_a_i_l.
  586.  
  587.      Finally, the hheellpp command is available to print  out  a
  588. brief  summary  of  the _M_a_i_l commands, using only the single
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599. UUSSDD::77--1100                               MMaaiill RReeffeerreennccee MMaannuuaall
  600.  
  601.  
  602. character command abbreviations.
  603.  
  604. 33..  MMaaiinnttaaiinniinngg ffoollddeerrss
  605.  
  606.      _M_a_i_l includes a simple facility for maintaining  groups
  607. of  messages  together  in  folders.  This section describes
  608. this facility.
  609.  
  610.      To use the folder facility, you must  tell  _M_a_i_l  where
  611. you wish to keep your folders.  Each folder of messages will
  612. be a single file.  For convenience, all of your folders  are
  613. kept  in  a single directory of your choosing.  To tell _M_a_i_l
  614. where your folder directory is, put a line of the form
  615.  
  616.     set folder=letters
  617.  
  618. in your _._m_a_i_l_r_c file.  If, as in  the  example  above,  your
  619. folder directory does not begin with a `/,' _M_a_i_l will assume
  620. that your folder directory is to be found starting from your
  621. home directory.  Thus, if your home directory is //uussrr//ppeerrssoonn
  622. the above example told _M_a_i_l to find your folder directory in
  623. //uussrr//ppeerrssoonn//lleetttteerrss.
  624.  
  625.      Anywhere  a file name is expected, you can use a folder
  626. name, preceded with `+.'  For example, to put a message into
  627. a folder with the ssaavvee command, you can use:
  628.  
  629.     save +classwork
  630.  
  631. to save the current message in the _c_l_a_s_s_w_o_r_k folder.  If the
  632. _c_l_a_s_s_w_o_r_k folder does not yet exist,  it  will  be  created.
  633. Note that messages which are saved with the ssaavvee command are
  634. automatically removed from your system mailbox.
  635.  
  636.      In order to make a copy of a message in a folder  with-
  637. out  causing  that  message  to  be removed from your system
  638. mailbox, use the ccooppyy command, which  is  identical  in  all
  639. other respects to the ssaavvee command.  For example,
  640.  
  641.     copy +classwork
  642.  
  643. copies  the  current  message  into the _c_l_a_s_s_w_o_r_k folder and
  644. leaves a copy in your system mailbox.
  645.  
  646.      The ffoollddeerr command can be used to direct  _M_a_i_l  to  the
  647. contents of a different folder.  For example,
  648.  
  649.     folder +classwork
  650.  
  651. directs  _M_a_i_l  to read the contents of the _c_l_a_s_s_w_o_r_k folder.
  652. All of the commands that you can use on your system  mailbox
  653. are  also applicable to folders, including ttyyppee, ddeelleettee, and
  654. rreeppllyy.  To inquire which folder you are  currently  editing,
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665. MMaaiill RReeffeerreennccee MMaannuuaall                               UUSSDD::77--1111
  666.  
  667.  
  668. use simply:
  669.  
  670.     folder
  671.  
  672.  
  673.      To  list  your  current set of folders, use the ffoollddeerrss
  674. command.
  675.  
  676.      To start _M_a_i_l reading one of your folders, you can  use
  677. the --ff option described in section 2.  For example:
  678.  
  679.     % Mail -f +classwork
  680.  
  681. will  cause _M_a_i_l to read your _c_l_a_s_s_w_o_r_k folder without look-
  682. ing at your system mailbox.
  683.  
  684.  
  685.  
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731. UUSSDD::77--1122                               MMaaiill RReeffeerreennccee MMaannuuaall
  732.  
  733.  
  734. 44..  MMoorree aabboouutt sseennddiinngg mmaaiill
  735.  
  736. 44..11..  TTiillddee eessccaappeess
  737.  
  738.      While typing in a message to be sent to others,  it  is
  739. often  useful  to  be  able to invoke the text editor on the
  740. partial message, print the message, execute a shell command,
  741. or  do  some  other auxiliary function.  _M_a_i_l provides these
  742. capabilities through _t_i_l_d_e _e_s_c_a_p_e_s, which consist of a tilde
  743. (~) at the beginning of a line, followed by a single charac-
  744. ter which indicates the function to be performed.  For exam-
  745. ple, to print the text of the message so far, use:
  746.  
  747.     ~p
  748.  
  749. which  will  print  a line of dashes, the recipients of your
  750. message, and the text of the message  so  far.   Since  _M_a_i_l
  751. requires two consecutive RUBOUT's to abort a letter, you can
  752. use a single RUBOUT to abort the output of ~p or any other ~
  753. escape without killing your letter.
  754.  
  755.      If  you are dissatisfied with the message as it stands,
  756. you can invoke the text editor on it using the escape
  757.  
  758.     ~e
  759.  
  760. which causes the message to be copied into a temporary  file
  761. and  an instance of the editor to be spawned.  After modify-
  762. ing the message to your satisfaction, write it out and  quit
  763. the editor.  _M_a_i_l will respond by typing
  764.  
  765.     (continue)
  766.  
  767. after  which  you  may  continue  typing  text which will be
  768. appended to your message, or type  <control-d>  to  end  the
  769. message.   A  standard text editor is provided by _M_a_i_l.  You
  770. can override this default by setting the valued option "EDI-
  771. TOR" to something else.  For example, you might prefer:
  772.  
  773.     set EDITOR=/usr/ucb/ex
  774.  
  775.  
  776.      Many systems offer a screen editor as an alternative to
  777. the standard text editor, such as  the  _v_i  editor  from  UC
  778. Berkeley.  To use the screen, or _v_i_s_u_a_l editor, on your cur-
  779. rent message, you can use the escape,
  780.  
  781.     ~v
  782.  
  783. ~v works like ~e, except that the screen editor  is  invoked
  784. instead.  A default screen editor is defined by _M_a_i_l.  If it
  785. does not suit you, you can set the valued option "VISUAL" to
  786. the path name of a different editor.
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797. MMaaiill RReeffeerreennccee MMaannuuaall                               UUSSDD::77--1133
  798.  
  799.  
  800.      It  is  often useful to be able to include the contents
  801. of some file in your message; the escape
  802.  
  803.     ~r filename
  804.  
  805. is provided for this purpose, and causes the named  file  to
  806. be  appended to your current message.  _M_a_i_l complains if the
  807. file doesn't exist or can't be read.  If the  read  is  suc-
  808. cessful, the number of lines and characters appended to your
  809. message is printed, after which you may  continue  appending
  810. text.   The filename may contain shell metacharacters like *
  811. and ?  which are expanded according to  the  conventions  of
  812. your shell.
  813.  
  814.      As a special case of ~r, the escape
  815.  
  816.     ~d
  817.  
  818. reads  in  the  file  "dead.letter"  in your home directory.
  819. This is often useful since _M_a_i_l copies the text of your mes-
  820. sage there when you abort a message with RUBOUT.
  821.  
  822.      To  save the current text of your message on a file you
  823. may use the
  824.  
  825.     ~w filename
  826.  
  827. escape.  _M_a_i_l will print out the number of lines and charac-
  828. ters  written  to  the  file,  after  which you may continue
  829. appending text to your message.  Shell metacharacters may be
  830. used  in  the  filename,  as in ~r and are expanded with the
  831. conventions of your shell.
  832.  
  833.      If you are sending mail from within _M_a_i_l_'_s command mode
  834. you  can read a message sent to you into the message you are
  835. constructing with the escape:
  836.  
  837.     ~m 4
  838.  
  839. which will read message 4 into the current message,  shifted
  840. right  by  one  tab stop.  You can name any non-deleted mes-
  841. sage, or list of messages.  Messages can also  be  forwarded
  842. without  shifting  by a tab stop with ~f.  This is the usual
  843. way to forward a message.
  844.  
  845.      If, in the process of composing a message,  you  decide
  846. to  add additional people to the list of message recipients,
  847. you can do so with the escape
  848.  
  849.     ~t name1 name2 ...
  850.  
  851. You may name as few or many  additional  recipients  as  you
  852. wish.   Note that the users originally on the recipient list
  853.  
  854.  
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863. UUSSDD::77--1144                               MMaaiill RReeffeerreennccee MMaannuuaall
  864.  
  865.  
  866. will still receive the message; you  cannot  remove  someone
  867. from the recipient list with ~t.
  868.  
  869.      If you wish, you can associate a subject with your mes-
  870. sage by using the escape
  871.  
  872.     ~s Arbitrary string of text
  873.  
  874. which replaces any previous subject with  "Arbitrary  string
  875. of  text."   The  subject, if given, is sent near the top of
  876. the message prefixed with "Subject:" You can  see  what  the
  877. message will look like by using ~p.
  878.  
  879.      For political reasons, one occasionally prefers to list
  880. certain people as recipients of carbon copies of  a  message
  881. rather than direct recipients.  The escape
  882.  
  883.     ~c name1 name2 ...
  884.  
  885. adds  the  named  people  to  the "Cc:" list, similar to ~t.
  886. Again, you can execute ~p to see what the message will  look
  887. like.
  888.  
  889.      The escape
  890.  
  891.     ~b name1 name2 ...
  892.  
  893. adds  the  named people to the "Cc:" list, but does not make
  894. the names visible in the "Cc:" line ("blind" carbon copy).
  895.  
  896.      The recipients of the message together  constitute  the
  897. "To:"  field, the subject the "Subject:" field, and the car-
  898. bon copies the "Cc:" field.  If you wish to  edit  these  in
  899. ways  impossible with the ~t, ~s, ~c and ~b escapes, you can
  900. use the escape
  901.  
  902.     ~h
  903.  
  904. which prints "To:" followed by the current list  of  recipi-
  905. ents  and leaves the cursor (or printhead) at the end of the
  906. line.  If you type in ordinary characters, they are appended
  907. to  the end of the current list of recipients.  You can also
  908. use your erase character to erase  back  into  the  list  of
  909. recipients, or your kill character to erase them altogether.
  910. Thus, for example, if your erase and kill characters are the
  911. standard (on printing terminals) # and @ symbols,
  912.  
  913.     ~h
  914.     To: root kurt####bill
  915.  
  916. would  change  the  initial  recipients "root kurt" to "root
  917. bill."  When you type a newline, _M_a_i_l advances to the  "Sub-
  918. ject:"  field,  where the same rules apply.  Another newline
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929. MMaaiill RReeffeerreennccee MMaannuuaall                               UUSSDD::77--1155
  930.  
  931.  
  932. brings you to the "Cc:" field, which may be  edited  in  the
  933. same  fashion.   Another  newline  brings  you to the "Bcc:"
  934. ("blind" carbon copy) field, which follows the same rules as
  935. the  "Cc:" field.  Another newline leaves you appending text
  936. to the end of your message.  You can use  ~p  to  print  the
  937. current  text  of the header fields and the body of the mes-
  938. sage.
  939.  
  940.      To effect a temporary escape to the shell, the escape
  941.  
  942.     ~!command
  943.  
  944. is used, which executes _c_o_m_m_a_n_d and returns you  to  mailing
  945. mode  without  altering  the  text  of your message.  If you
  946. wish, instead, to filter the body of your message through  a
  947. shell command, then you can use
  948.  
  949.     ~|command
  950.  
  951. which  pipes  your  message through the command and uses the
  952. output as the new text of your message.  If the command pro-
  953. duces  no  output,  _M_a_i_l assumes that something is amiss and
  954. retains the old version of your message.  A  frequently-used
  955. filter is the command _f_m_t, designed to format outgoing mail.
  956.  
  957.      To effect a  temporary  escape  to  _M_a_i_l  command  mode
  958. instead, you can use the
  959.  
  960.     ~:_M_a_i_l _c_o_m_m_a_n_d
  961.  
  962. escape.   This is especially useful for retyping the message
  963. you are replying to, using, for example:
  964.  
  965.     ~:t
  966.  
  967. It is also useful for setting options and modifying aliases.
  968.  
  969.      If  you wish abort the current message, you can use the
  970. escape
  971.  
  972.     ~q
  973.  
  974. This will terminate the current message and  return  you  to
  975. the  shell (or _M_a_i_l if you were using the mmaaiill command).  If
  976. the ssaavvee option is set, the message will be  copied  to  the
  977. file "dead.letter" in your home directory.
  978.  
  979.      If  you  wish  (for some reason) to send a message that
  980. contains a line beginning with a tilde, you must double  it.
  981. Thus, for example,
  982.  
  983.     ~~This line begins with a tilde.
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995. UUSSDD::77--1166                               MMaaiill RReeffeerreennccee MMaannuuaall
  996.  
  997.  
  998. sends the line
  999.  
  1000.     ~This line begins with a tilde.
  1001.  
  1002.  
  1003.      Finally, the escape
  1004.  
  1005.     ~?
  1006.  
  1007. prints out a brief summary of the available tilde escapes.
  1008.  
  1009.      On  some  terminals  (particularly  ones  with no lower
  1010. case) tilde's are difficult to type.   _M_a_i_l  allows  you  to
  1011. change  the  escape character with the "escape" option.  For
  1012. example, I set
  1013.  
  1014.     set escape=]
  1015.  
  1016. and use a right bracket instead of a tilde.  If I ever  need
  1017. to  send  a  line beginning with right bracket, I double it,
  1018. just as for ~.  Changing the escape  character  removes  the
  1019. special meaning of ~.
  1020.  
  1021. 44..22..  NNeettwwoorrkk aacccceessss
  1022.  
  1023.      This  section  describes  how to send mail to people on
  1024. other machines.  Recall that sending to a plain  login  name
  1025. sends  mail to that person on your machine.  If your machine
  1026. is directly (or sometimes, even,  indirectly)  connected  to
  1027. the  Arpanet, you can send messages to people on the Arpanet
  1028. using a name of the form
  1029.  
  1030.     name@host.domain
  1031.  
  1032. where _n_a_m_e is the login name of the person you're trying  to
  1033. reach,  _h_o_s_t  is the name of the machine on the Arpanet, and
  1034. _d_o_m_a_i_n is the higher-level scope within which  the  hostname
  1035. is  known, e.g. EDU (for educational institutions), COM (for
  1036. commercial entities), GOV (for governmental agencies),  ARPA
  1037. for many other things, BITNET or CSNET for those networks.
  1038.  
  1039.      If  your  recipient  logs  in on a machine connected to
  1040. yours by UUCP (the Bell Laboratories supplied  network  that
  1041. communicates  over  telephone  lines), sending mail can be a
  1042. bit more complicated.  You must know the  list  of  machines
  1043. through  which  your  message  must  travel to arrive at his
  1044. site.  So, if his machine is directly  connected  to  yours,
  1045. you can send mail to him using the syntax:
  1046.  
  1047.     host!name
  1048.  
  1049. where,  again,  _h_o_s_t  is the name of the machine and _n_a_m_e is
  1050. the  login  name.   If  your  message  must  go  through  an
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061. MMaaiill RReeffeerreennccee MMaannuuaall                               UUSSDD::77--1177
  1062.  
  1063.  
  1064. intermediary machine first, you must use the syntax:
  1065.  
  1066.     intermediary!host!name
  1067.  
  1068. and so on.  It is actually a feature of UUCP that the map of
  1069. all the systems in the network is not known anywhere (except
  1070. where people decide to write it down for convenience).  Talk
  1071. to your system administrator about good ways to get  places;
  1072. the  _u_u_n_a_m_e  command  will  tell you systems whose names are
  1073. recognized, but not which  ones  are  frequently  called  or
  1074. well-connected.
  1075.  
  1076.      When  you use the rreeppllyy command to respond to a letter,
  1077. there is a problem of figuring out the names of the users in
  1078. the  "To:"  and "Cc:" lists _r_e_l_a_t_i_v_e _t_o _t_h_e _c_u_r_r_e_n_t _m_a_c_h_i_n_e.
  1079. If the original letter was sent to you  by  someone  on  the
  1080. local  machine, then this problem does not exist, but if the
  1081. message came from a remote  machine,  the  problem  must  be
  1082. dealt with.  _M_a_i_l uses a heuristic to build the correct name
  1083. for each user relative to the local machine.  So,  when  you
  1084. rreeppllyy to remote mail, the names in the "To:" and "Cc:" lists
  1085. may change somewhat.
  1086.  
  1087. 44..33..  SSppeecciiaall rreecciippiieennttss
  1088.  
  1089.      As described previously, you can send  mail  to  either
  1090. user names or aalliiaass names.  It is also possible to send mes-
  1091. sages directly to files or to programs, using  special  con-
  1092. ventions.   If  a  recipient  name has a `/' in it or begins
  1093. with a `+', it is assumed to be the path name of a file into
  1094. which  to send the message.  If the file already exists, the
  1095. message is appended to the end of the file.  If you want  to
  1096. name  a  file in your current directory (ie, one for which a
  1097. `/' would not usually be needed) you can  precede  the  name
  1098. with `./' So, to send mail to the file "memo" in the current
  1099. directory, you can give the command:
  1100.  
  1101.     % Mail ./memo
  1102.  
  1103. If the name begins with a `+,' it is expanded into the  full
  1104. path name of the folder name in your folder directory.  This
  1105. ability to send mail to files can be used for a  variety  of
  1106. purposes, such as maintaining a journal and keeping a record
  1107. of mail sent to a certain group of users.  The second  exam-
  1108. ple can be done automatically by including the full pathname
  1109. of the record file in  the  aalliiaass  command  for  the  group.
  1110. Using  our  previous  aalliiaass example, you might give the com-
  1111. mand:
  1112.  
  1113.     alias project sam sally steve susan /usr/project/mail_record
  1114.  
  1115. Then, all mail sent to "project" would be saved on the  file
  1116. "/usr/project/mail_record"  as  well  as  being  sent to the
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127. UUSSDD::77--1188                               MMaaiill RReeffeerreennccee MMaannuuaall
  1128.  
  1129.  
  1130. members of the project.  This file  can  be  examined  using
  1131. _M_a_i_l _-_f.
  1132.  
  1133.      It  is sometimes useful to send mail directly to a pro-
  1134. gram, for example one might write a project  billboard  pro-
  1135. gram  and want to access it using _M_a_i_l.  To send messages to
  1136. the billboard program, one can send mail to the special name
  1137. `|billboard'  for example.  _M_a_i_l treats recipient names that
  1138. begin with a `|' as a program to send the mail to.  An aalliiaass
  1139. can  be  set up to reference a `|' prefaced name if desired.
  1140. _C_a_v_e_a_t_s: the shell treats  `|'  specially,  so  it  must  be
  1141. quoted  on  the command line.  Also, the `| program' must be
  1142. presented as a single argument to mail.  The  safest  course
  1143. is  to  surround  the  entire name with double quotes.  This
  1144. also applies to usage in the aalliiaass command.  For example, if
  1145. we  wanted  to  alias `rmsgs' to `rmsgs -s' we would need to
  1146. say:
  1147.  
  1148.     alias rmsgs "| rmsgs -s"
  1149.  
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156.  
  1157.  
  1158.  
  1159.  
  1160.  
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167.  
  1168.  
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193. MMaaiill RReeffeerreennccee MMaannuuaall                               UUSSDD::77--1199
  1194.  
  1195.  
  1196. 55..  AAddddiittiioonnaall ffeeaattuurreess
  1197.  
  1198.      This section describes some additional commands  useful
  1199. for  reading  your mail, setting options, and handling lists
  1200. of messages.
  1201.  
  1202. 55..11..  MMeessssaaggee lliissttss
  1203.  
  1204.      Several _M_a_i_l commands accept a list of messages  as  an
  1205. argument.   Along with ttyyppee and ddeelleettee, described in section
  1206. 2, there is the ffrroomm command, which prints the message head-
  1207. ers associated with the message list passed to it.  The ffrroomm
  1208. command is particularly useful in conjunction with  some  of
  1209. the message list features described below.
  1210.  
  1211.      A  _m_e_s_s_a_g_e  _l_i_s_t consists of a list of message numbers,
  1212. ranges, and names, separated by  spaces  or  tabs.   Message
  1213. numbers  may be either decimal numbers, which directly spec-
  1214. ify messages, or one of the special characters  ""  "."   or
  1215. "$" to specify the first relevant, current, or last relevant
  1216. message, respectively.  _R_e_l_e_v_a_n_t here means, for  most  com-
  1217. mands  "not deleted" and "deleted" for the uunnddeelleettee command.
  1218.  
  1219.      A range of messages consists of two message numbers (of
  1220. the form described in the previous paragraph) separated by a
  1221. dash.  Thus, to print the first four messages, use
  1222.  
  1223.     type 1-4
  1224.  
  1225. and to print all the messages from the  current  message  to
  1226. the last message, use
  1227.  
  1228.     type .-$
  1229.  
  1230.  
  1231.      A  _n_a_m_e  is  a  user name.  The user names given in the
  1232. message  list  are  collected  together  and  each   message
  1233. selected  by other means is checked to make sure it was sent
  1234. by one of the named users.  If the message consists entirely
  1235. of user names, then every message sent by one of those users
  1236. that  is  _r_e_l_e_v_a_n_t  (in  the  sense  described  earlier)  is
  1237. selected.   Thus,  to  print  every  message  sent to you by
  1238. "root," do
  1239.  
  1240.     type root
  1241.  
  1242.  
  1243.      As a shorthand notation, you can specify simply "*"  to
  1244. get every _r_e_l_e_v_a_n_t (same sense) message.  Thus,
  1245.  
  1246.     type *
  1247.  
  1248. prints all undeleted messages,
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259. UUSSDD::77--2200                               MMaaiill RReeffeerreennccee MMaannuuaall
  1260.  
  1261.  
  1262.     delete *
  1263.  
  1264. deletes all undeleted messages, and
  1265.  
  1266.     undelete *
  1267.  
  1268. undeletes all deleted messages.
  1269.  
  1270.      You  can  search  for the presence of a word in subject
  1271. lines with //.  For example, to print the headers of all mes-
  1272. sages that contain the word "PASCAL," do:
  1273.  
  1274.     from /pascal
  1275.  
  1276. Note that subject searching ignores upper/lower case differ-
  1277. ences.
  1278.  
  1279. 55..22..  LLiisstt ooff ccoommmmaannddss
  1280.  
  1281.      This section describes all the _M_a_i_l commands  available
  1282. when receiving mail.
  1283.  
  1284. --    The  --  command goes to the previous message and prints
  1285.      it.  The -- command may be given a decimal number  _n  as
  1286.      an  argument, in which case the _nth previous message is
  1287.      gone to and printed.
  1288.  
  1289. ??    Prints a brief summary of commands.
  1290.  
  1291. !!    Used to preface a command to be executed by the  shell.
  1292.  
  1293. PPrriinntt
  1294.      Like  pprriinntt,  but also print out ignored header fields.
  1295.      See also pprriinntt, iiggnnoorree and rreettaaiinn.  PPrriinntt can be abbre-
  1296.      viated to PP.
  1297.  
  1298. RReeppllyy or RReessppoonndd
  1299.      Note the capital RR in the name.  Frame a reply to a one
  1300.      or more messages.  The reply (or  replies  if  you  are
  1301.      using  this  on multiple messages) will be sent ONLY to
  1302.      the person who sent you the message (respectively,  the
  1303.      set  of  people  who sent the messages you are replying
  1304.      to).  You can add people using the ~~tt, ~~cc and ~~bb  tilde
  1305.      escapes.   The subject in your reply is formed by pref-
  1306.      acing the subject in the original  message  with  "Re:"
  1307.      unless  it already began thus.  If the original message
  1308.      included a "reply-to" header field, the reply  will  go
  1309.      _o_n_l_y to the recipient named by "reply-to."  You type in
  1310.      your message using the same  conventions  available  to
  1311.      you  through  the  mmaaiill  command.  The RReeppllyy command is
  1312.      especially useful for replying to  messages  that  were
  1313.      sent  to  enormous  distribution groups when you really
  1314.      just want to send a message to the originator.  Use  it
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325. MMaaiill RReeffeerreennccee MMaannuuaall                               UUSSDD::77--2211
  1326.  
  1327.  
  1328.      often.  RReeppllyy (and RReessppoonndd) can be abbreviated to RR.
  1329.  
  1330. TTyyppee
  1331.      Identical  to  the PPrriinntt command.  TTyyppee can be abbrevi-
  1332.      ated to TT.
  1333.  
  1334. aalliiaass
  1335.      Define a name to stand for a set of other names.   This
  1336.      is  used  when  you  want to send messages to a certain
  1337.      group of people and want to avoid retyping their names.
  1338.      For example
  1339.  
  1340.          alias project john sue willie kathryn
  1341.  
  1342.      creates an alias _p_r_o_j_e_c_t which expands to the four peo-
  1343.      ple John, Sue, Willie, and Kathryn.   If  no  arguments
  1344.      are  given,  all currently-defined aliases are printed.
  1345.      If one argument is given, that alias is printed (if  it
  1346.      exists).  AAlliiaass can be abbreviated to aa.
  1347.  
  1348. aalltteerrnnaatteess
  1349.      If  you have accounts on several machines, you may find
  1350.      it convenient to use the /usr/lib/aliases  on  all  the
  1351.      machines  except  one  to  direct your mail to a single
  1352.      account.  The aalltteerrnnaatteess command is used to inform _M_a_i_l
  1353.      that  each  of  these  other  addresses  is really _y_o_u.
  1354.      _A_l_t_e_r_n_a_t_e_s takes a list of  user  names  and  remembers
  1355.      that they are all actually you.  When you rreeppllyy to mes-
  1356.      sages that were sent to one of these  alternate  names,
  1357.      _M_a_i_l  will  not bother to send a copy of the message to
  1358.      this other address (which would simply be directed back
  1359.      to you by the alias mechanism).  If _a_l_t_e_r_n_a_t_e_s is given
  1360.      no argument, it lists  the  current  set  of  alternate
  1361.      names.  AAlltteerrnnaatteess is usually used in the .mailrc file.
  1362.      AAlltteerrnnaatteess can be abbreviated to aalltt.
  1363.  
  1364. cchhddiirr
  1365.      The cchhddiirr command allows you  to  change  your  current
  1366.      directory.   CChhddiirr  takes  a  single argument, which is
  1367.      taken to be the pathname of the directory to change to.
  1368.      If  no  argument  is  given, cchhddiirr changes to your home
  1369.      directory.  CChhddiirr can be abbreviated to cc.
  1370.  
  1371. ccooppyy
  1372.      The ccooppyy command does the same thing  that  ssaavvee  does,
  1373.      except that it does not mark the messages it is used on
  1374.      for deletion when you quit.  CCooppyy can be abbreviated to
  1375.      ccoo.
  1376.  
  1377. ddeelleettee
  1378.      Deletes  a  list  of messages.  Deleted messages can be
  1379.      reclaimed with the uunnddeelleettee  command.   DDeelleettee  can  be
  1380.      abbreviated to dd.
  1381.  
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391. UUSSDD::77--2222                               MMaaiill RReeffeerreennccee MMaannuuaall
  1392.  
  1393.  
  1394. ddpp or ddtt
  1395.      These commands delete the current message and print the
  1396.      next message.  They are useful for quickly reading  and
  1397.      disposing  of  mail.  If there is no next message, _m_a_i_l
  1398.      says ``at EOF.''
  1399.  
  1400. eeddiitt
  1401.      To edit individual messages using the text editor,  the
  1402.      eeddiitt  command  is  provided.   The eeddiitt command takes a
  1403.      list of messages as described under  the  ttyyppee  command
  1404.      and processes each by writing it into the file Message_x
  1405.      where _x is the message number being edited and  execut-
  1406.      ing  the  text  editor on it.  When you have edited the
  1407.      message to your satisfaction, write the message out and
  1408.      quit,  upon  which  _M_a_i_l will read the message back and
  1409.      remove the file.  EEddiitt can be abbreviated to ee.
  1410.  
  1411. eellssee
  1412.      Marks the end of the then-part of an iiff  statement  and
  1413.      the  beginning of the part to take effect if the condi-
  1414.      tion of the iiff statement is false.
  1415.  
  1416. eennddiiff
  1417.      Marks the end of an iiff statement.
  1418.  
  1419. eexxiitt or xxiitt
  1420.      Leave _M_a_i_l without updating the system mailbox  or  the
  1421.      file  your  were  reading.   Thus,  if you accidentally
  1422.      delete several messages, you  can  use  eexxiitt  to  avoid
  1423.      scrambling your mailbox.  EExxiitt can be abbreviated to eexx
  1424.      or xx.
  1425.  
  1426. ffiillee
  1427.      The same as ffoollddeerr.  FFiillee can be abbreviated to ffii.
  1428.  
  1429. ffoollddeerrss
  1430.      List the names of the folders in your folder directory.
  1431.  
  1432. ffoollddeerr
  1433.      The  ffoollddeerr  command  switches  to  a  new mail file or
  1434.      folder.  With no arguments, it tells you which file you
  1435.      are  currently reading.  If you give it an argument, it
  1436.      will write out changes (such  as  deletions)  you  have
  1437.      made  in  the current file and read the new file.  Some
  1438.      special conventions are recognized for the name:
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457. MMaaiill RReeffeerreennccee MMaannuuaall                               UUSSDD::77--2233
  1458.  
  1459.  
  1460.  
  1461.               Name                  Meaning
  1462.              --------------------------------------------
  1463.              #          Previous file read
  1464.              %          Your system mailbox
  1465.              %name      _N_a_m_e's system mailbox
  1466.              &          Your ~/mbox file
  1467.              +folder    A file in your folder directory
  1468.  
  1469.  
  1470.      FFoollddeerr can be abbreviated to ffoo.
  1471.  
  1472. ffrroomm
  1473.      The ffrroomm command takes a list of  messages  and  prints
  1474.      out the header lines for each one; hence
  1475.  
  1476.          from joe
  1477.  
  1478.      is the easy way to display all the message headers from
  1479.      "joe."  FFrroomm can be abbreviated to ff.
  1480.  
  1481. hheeaaddeerrss
  1482.      When you start up _M_a_i_l to read your mail, it lists  the
  1483.      message  headers that you have.  These headers tell you
  1484.      who each message is from, when they were received,  how
  1485.      many  lines  and  characters  each  message is, and the
  1486.      "Subject:" header field of each  message,  if  present.
  1487.      In  addition, _M_a_i_l tags the message header of each mes-
  1488.      sage that has been the object of the  pprreesseerrvvee  command
  1489.      with  a  "P."  Messages that have been ssaavveedd or wwrriitttteenn
  1490.      are flagged with a "*."  Finally, ddeelleetteedd messages  are
  1491.      not printed at all.  If you wish to reprint the current
  1492.      list of message headers, you can do so with the hheeaaddeerrss
  1493.      command.   The  hheeaaddeerrss  command  (and thus the initial
  1494.      header listing) only lists the first  so  many  message
  1495.      headers.   The  number of headers listed depends on the
  1496.      speed of your terminal.   This  can  be  overridden  by
  1497.      specifying the number of headers you want with the _w_i_n_-
  1498.      _d_o_w option.  _M_a_i_l maintains a  notion  of  the  current
  1499.      "window"  into your messages for the purposes of print-
  1500.      ing headers.  Use the zz command  to  move  forward  and
  1501.      back  a window.  You can move _M_a_i_l_'_s notion of the cur-
  1502.      rent window directly to a particular message by  using,
  1503.      for example,
  1504.  
  1505.          headers 40
  1506.  
  1507.      to move _M_a_i_l_'_s attention to the messages around message
  1508.      40.  If a  ``+''  argument  is  given,  then  the  next
  1509.      screenful of message headers is printed, and if a ``-''
  1510.      argument is given, the previous  screenful  of  message
  1511.      headers is printed.  HHeeaaddeerrss can be abbreviated to hh.
  1512.  
  1513.  
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522.  
  1523. UUSSDD::77--2244                               MMaaiill RReeffeerreennccee MMaannuuaall
  1524.  
  1525.  
  1526. hheellpp
  1527.      Print  a  brief  and  usually  out of date help message
  1528.      about the commands in _M_a_i_l.  The _m_a_n page for  _m_a_i_l  is
  1529.      usually more up-to-date than either the help message or
  1530.      this manual.  It is also a synonym for ??.
  1531.  
  1532. hhoolldd
  1533.      Arrange to hold a list of messages in the system  mail-
  1534.      box,  instead  of  moving them to the file _m_b_o_x in your
  1535.      home directory.  If you set  the  binary  option  _h_o_l_d,
  1536.      this  will happen by default.  It does not override the
  1537.      ddeelleettee command.  HHoolldd can be abbreviated to hhoo.
  1538.  
  1539. iiff   Commands in your ".mailrc" file can be executed  condi-
  1540.      tionally  depending  on  whether  you  are  sending  or
  1541.      receiving mail with the iiff command.  For  example,  you
  1542.      can do:
  1543.  
  1544.          if receive
  1545.               _c_o_m_m_a_n_d_s...
  1546.          endif
  1547.  
  1548.      An eellssee form is also available:
  1549.  
  1550.          if send
  1551.               _c_o_m_m_a_n_d_s...
  1552.          else
  1553.               _c_o_m_m_a_n_d_s...
  1554.          endif
  1555.  
  1556.      Note  that  the only allowed conditions are rreecceeiivvee and
  1557.      sseenndd.
  1558.  
  1559. iiggnnoorree
  1560.      NN..BB..:: _I_g_n_o_r_e has been superseded by _r_e_t_a_i_n_.
  1561.      Add the list of header fields named to the _i_g_n_o_r_e _l_i_s_t.
  1562.      Header  fields  in  the  ignore list are not printed on
  1563.      your terminal when you print a  message.   This  allows
  1564.      you  to  suppress printing of certain machine-generated
  1565.      header fields, such as _V_i_a which  are  not  usually  of
  1566.      interest.   The  TTyyppee and PPrriinntt commands can be used to
  1567.      print a message  in  its  entirety,  including  ignored
  1568.      fields.   If  iiggnnoorree  is executed with no arguments, it
  1569.      lists the current set of ignored fields.
  1570.  
  1571. lliisstt
  1572.      List the valid _M_a_i_l commands.  LLiisstt can be  abbreviated
  1573.      to ll.
  1574.  
  1575. mmaaiill
  1576.      Send  mail  to one or more people.  If you have the _a_s_k
  1577.      option set, _M_a_i_l will prompt you for a subject to  your
  1578.      message.   Then  you  can  type  in your message, using
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589. MMaaiill RReeffeerreennccee MMaannuuaall                               UUSSDD::77--2255
  1590.  
  1591.  
  1592.      tilde escapes as described in section 4 to edit, print,
  1593.      or  modify  your  message.  To signal your satisfaction
  1594.      with the message and send it,  type  control-d  at  the
  1595.      beginning  of a line, or a . alone on a line if you set
  1596.      the option _d_o_t.  To abort the message, type two  inter-
  1597.      rupt characters (RUBOUT by default) in a row or use the
  1598.      ~~qq escape.  The mmaaiill command can be abbreviated to mm.
  1599.  
  1600. mmbbooxx
  1601.      Indicate that a list of messages be  sent  to  _m_b_o_x  in
  1602.      your home directory when you quit.  This is the default
  1603.      action for messages if you do _n_o_t have the _h_o_l_d  option
  1604.      set.
  1605.  
  1606. nneexxtt or ++
  1607.      The nneexxtt command goes to the next message and types it.
  1608.      If given a message list, nneexxtt goes to  the  first  such
  1609.      message and types it.  Thus,
  1610.  
  1611.          next root
  1612.  
  1613.      goes  to  the next message sent by "root" and types it.
  1614.      The nneexxtt command can be abbreviated to  simply  a  new-
  1615.      line, which means that one can go to and type a message
  1616.      by simply giving its message number or one of the magic
  1617.      characters "^" "."  or "$".  Thus,
  1618.  
  1619.          .
  1620.  
  1621.      prints the current message and
  1622.  
  1623.          4
  1624.  
  1625.      prints message 4, as described previously.  NNeexxtt can be
  1626.      abbreviated to nn.
  1627.  
  1628. pprreesseerrvvee
  1629.      Same as hhoolldd.  Cause a list of messages to be  held  in
  1630.      your  system  mailbox  when  you quit.  PPrreesseerrvvee can be
  1631.      abbreviated to pprree.
  1632.  
  1633. pprriinntt
  1634.      Print the specified messages. If the  ccrrtt  variable  is
  1635.      set,  messages longer than the number of lines it indi-
  1636.      cates are paged through the command  specified  by  the
  1637.      PPAAGGEERR  variable.   The pprriinntt command can be abbreviated
  1638.      to pp.
  1639.  
  1640. qquuiitt
  1641.      Terminates the session, saving all  undeleted,  unsaved
  1642.      and unwritten messages in the user's _m_b_o_x file in their
  1643.      login directory (messages marked as having been  read),
  1644.      preserving all messages marked with hhoolldd or pprreesseerrvvee or
  1645.  
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.  
  1655. UUSSDD::77--2266                               MMaaiill RReeffeerreennccee MMaannuuaall
  1656.  
  1657.  
  1658.      never referenced in their system mailbox.  Any messages
  1659.      that  were deleted, saved, written or saved to _m_b_o_x are
  1660.      removed from their system mailbox.   If  new  mail  has
  1661.      arrived  during the session, the message ``You have new
  1662.      mail'' is given.  If given while editing a mailbox file
  1663.      with  the  --ff flag, then the edit file is rewritten.  A
  1664.      return to the Shell is effected, unless the rewrite  of
  1665.      edit file fails, in which case the user can escape with
  1666.      the eexxiitt command.  QQuuiitt can be abbreviated to qq.
  1667.  
  1668. rreeppllyy or rreessppoonndd
  1669.      Frame a reply to a single message.  The reply  will  be
  1670.      sent  to  the person who sent you the message (to which
  1671.      you are replying), plus all the people who received the
  1672.      original message, except you.  You can add people using
  1673.      the ~~tt, ~~cc and ~~bb tilde escapes.  The subject  in  your
  1674.      reply  is formed by prefacing the subject in the origi-
  1675.      nal message with "Re:" unless it  already  began  thus.
  1676.      If  the  original  message included a "reply-to" header
  1677.      field, the reply will go _o_n_l_y to the recipient named by
  1678.      "reply-to."   You  type  in your message using the same
  1679.      conventions available to you through the mmaaiill  command.
  1680.      The  rreeppllyy  (and rreessppoonndd) command can be abbreviated to
  1681.      rr.
  1682.  
  1683. rreettaaiinn
  1684.      Add the list of header fields  named  to  the  _r_e_t_a_i_n_e_d
  1685.      _l_i_s_t.   Only  the  header fields in the retain list are
  1686.      shown on your terminal when you print a  message.   All
  1687.      other header fields are suppressed.  The TTyyppee and PPrriinntt
  1688.      commands  can  be  used  to  print  a  message  in  its
  1689.      entirety.   If rreettaaiinn is executed with no arguments, it
  1690.      lists the current set of retained fields.
  1691.  
  1692. ssaavvee
  1693.      It is often useful to  be  able  to  save  messages  on
  1694.      related  topics  in a file.  The ssaavvee command gives you
  1695.      the ability to do this.  The ssaavvee command takes  as  an
  1696.      argument  a  list  of  message numbers, followed by the
  1697.      name of the file in which to save  the  messages.   The
  1698.      messages  are appended to the named file, thus allowing
  1699.      one to keep several messages in the file, stored in the
  1700.      order  they  were  put  there.  The filename in quotes,
  1701.      followed by the  line  count  and  character  count  is
  1702.      echoed  on the user's terminal.  An example of the ssaavvee
  1703.      command relative to our running example is:
  1704.  
  1705.          s 1 2 tuitionmail
  1706.  
  1707.      SSaavveedd messages are not automatically saved in  _m_b_o_x  at
  1708.      quit  time,  nor  are they selected by the nneexxtt command
  1709.      described above, unless explicitly specified.  SSaavvee can
  1710.      be abbreviated to ss.
  1711.  
  1712.  
  1713.  
  1714.  
  1715.  
  1716.  
  1717.  
  1718.  
  1719.  
  1720.  
  1721. MMaaiill RReeffeerreennccee MMaannuuaall                               UUSSDD::77--2277
  1722.  
  1723.  
  1724. sseett
  1725.      Set  an option or give an option a value.  Used to cus-
  1726.      tomize _M_a_i_l.   Section  5.3  contains  a  list  of  the
  1727.      options.  Options can be _b_i_n_a_r_y, in which case they are
  1728.      _o_n or _o_f_f, or _v_a_l_u_e_d.  To set a  binary  option  _o_p_t_i_o_n
  1729.      _o_n, do
  1730.  
  1731.          set option
  1732.  
  1733.      To give the valued option _o_p_t_i_o_n the value _v_a_l_u_e, do
  1734.  
  1735.          set option=value
  1736.  
  1737.      There  must be no space before or after the ``='' sign.
  1738.      If no arguments are  given,  all  variable  values  are
  1739.      printed.   Several options can be specified in a single
  1740.      sseett command.  SSeett can be abbreviated to ssee.
  1741.  
  1742. sshheellll
  1743.      The sshheellll command allows you to escape  to  the  shell.
  1744.      SShheellll  invokes  an  interactive shell and allows you to
  1745.      type commands to it.  When you  leave  the  shell,  you
  1746.      will  return  to  _M_a_i_l.   The  shell  used is a default
  1747.      assumed by _M_a_i_l; you can override this default by  set-
  1748.      ting the valued option "SHELL," eg:
  1749.  
  1750.          set SHELL=/bin/csh
  1751.  
  1752.      SShheellll can be abbreviated to sshh.
  1753.  
  1754. ssiizzee
  1755.      Takes a message list and prints out the size in charac-
  1756.      ters of each message.
  1757.  
  1758. ssoouurrccee
  1759.      The ssoouurrccee command reads _m_a_i_l commands from a file.  It
  1760.      is  useful  when  you  are trying to fix your ".mailrc"
  1761.      file and you need to re-read it.  SSoouurrccee can be  abbre-
  1762.      viated to ssoo.
  1763.  
  1764. ttoopp
  1765.      The  ttoopp  command  takes  a message list and prints the
  1766.      first five lines of each  addressed  message.   If  you
  1767.      wish,  you  can  change  the  number  of lines that ttoopp
  1768.      prints out by setting the valued option "toplines."  On
  1769.      a CRT terminal,
  1770.  
  1771.          set toplines=10
  1772.  
  1773.      might be preferred.  TToopp can be abbreviated to ttoo.
  1774.  
  1775. ttyyppee
  1776.      Same as pprriinntt.  Takes a message list and types out each
  1777.  
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786.  
  1787. UUSSDD::77--2288                               MMaaiill RReeffeerreennccee MMaannuuaall
  1788.  
  1789.  
  1790.      message on the  terminal.   The  ttyyppee  command  can  be
  1791.      abbreviated to tt.
  1792.  
  1793. uunnddeelleettee
  1794.      Takes  a  message  list  and  marks each message as _n_o_t
  1795.      being deleted.  UUnnddeelleettee can be abbreviated to uu.
  1796.  
  1797. uunnrreeaadd
  1798.      Takes a message list and marks each message as _n_o_t hav-
  1799.      ing been read.  UUnnrreeaadd can be abbreviated to UU.
  1800.  
  1801. uunnsseett
  1802.      Takes  a list of option names and discards their remem-
  1803.      bered values; the inverse of sseett .
  1804.  
  1805. vviissuuaall
  1806.      It is often useful to be able to invoke one of two edi-
  1807.      tors,  based  on the type of terminal one is using.  To
  1808.      invoke a display  oriented  editor,  you  can  use  the
  1809.      vviissuuaall command.  The operation of the vviissuuaall command is
  1810.      otherwise identical to that of the eeddiitt command.
  1811.  
  1812.      Both the eeddiitt and vviissuuaall commands assume  some  default
  1813.      text  editors.  These default editors can be overridden
  1814.      by the valued options "EDITOR"  and  "VISUAL"  for  the
  1815.      standard and screen editors.  You might want to do:
  1816.  
  1817.          set EDITOR=/usr/ucb/ex VISUAL=/usr/ucb/vi
  1818.  
  1819.      VViissuuaall can be abbreviated to vv.
  1820.  
  1821. wwrriittee
  1822.      The  ssaavvee  command  always  writes  the entire message,
  1823.      including the headers, into the file.  If you  want  to
  1824.      write  just  the  message itself, you can use the wwrriittee
  1825.      command.  The wwrriittee command has the same syntax as  the
  1826.      ssaavvee  command,  and  can  be  abbreviated  to simply ww.
  1827.      Thus, we could write the second message by doing:
  1828.  
  1829.          w 2 file.c
  1830.  
  1831.      As suggested by this example, the wwrriittee command is use-
  1832.      ful for such tasks as sending and receiving source pro-
  1833.      gram text over the message  system.   The  filename  in
  1834.      quotes,  followed by the line count and character count
  1835.      is echoed on the user's terminal.
  1836.  
  1837. zz    _M_a_i_l  presents  message  headers   in   windowfuls   as
  1838.      described  under  the  hheeaaddeerrss  command.   You can move
  1839.      _M_a_i_l_'_s attention forward to the next window  by  giving
  1840.      the
  1841.  
  1842.          z+
  1843.  
  1844.  
  1845.  
  1846.  
  1847.  
  1848.  
  1849.  
  1850.  
  1851.  
  1852.  
  1853. MMaaiill RReeffeerreennccee MMaannuuaall                               UUSSDD::77--2299
  1854.  
  1855.  
  1856.      command.   Analogously,  you  can  move to the previous
  1857.      window with:
  1858.  
  1859.          z-
  1860.  
  1861.  
  1862. 55..33..  CCuussttoomm ooppttiioonnss
  1863.  
  1864.      Throughout this manual, we have seen examples of binary
  1865. and  valued  options.   This  section  describes each of the
  1866. options in alphabetical order, including some that you  have
  1867. not  seen  yet.   To  avoid  confusion, please note that the
  1868. options are either all lower case letters or all upper  case
  1869. letters.  When I start a sentence such as: "Ask" causes _M_a_i_l
  1870. to prompt you for a subject header, I am  only  capitalizing
  1871. "ask" as a courtesy to English.
  1872.  
  1873. EEDDIITTOORR
  1874.      The  valued option "EDITOR" defines the pathname of the
  1875.      text editor to be used in the eeddiitt command and ~e.   If
  1876.      not defined, a standard editor is used.
  1877.  
  1878. PPAAGGEERR
  1879.      Pathname  of  the  program to use for paginating output
  1880.      when it exceeds _c_r_t lines.  A default paginator is used
  1881.      if this option is not defined.
  1882.  
  1883. SSHHEELLLL
  1884.      The  valued  option "SHELL" gives the path name of your
  1885.      shell.  This shell is used for the !!   command  and  ~!
  1886.      escape.   In  addition,  this  shell expands file names
  1887.      with shell metacharacters like * and ? in them.
  1888.  
  1889. VVIISSUUAALL
  1890.      The valued option "VISUAL" defines the pathname of  the
  1891.      screen  editor  to be used in the vviissuuaall command and ~v
  1892.      escape.  A standard screen editor is used if you do not
  1893.      define one.
  1894.  
  1895. aappppeenndd
  1896.      The "append" option is binary and causes messages saved
  1897.      in  _m_b_o_x  to  be  appended  to  the  end  rather   than
  1898.      prepended.  Normally, _M_a_i_l will put messages in _m_b_o_x in
  1899.      the same order that the system puts  messages  in  your
  1900.      system  mailbox.  By setting "append," you are request-
  1901.      ing that _m_b_o_x be appended to regardless.  It is in  any
  1902.      event quicker to append.
  1903.  
  1904. aasskk
  1905.      "Ask"  is  a  binary option which causes _M_a_i_l to prompt
  1906.      you for the subject of each message you send.   If  you
  1907.      respond with simply a newline, no subject field will be
  1908.      sent.
  1909.  
  1910.  
  1911.  
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.  
  1919. UUSSDD::77--3300                               MMaaiill RReeffeerreennccee MMaannuuaall
  1920.  
  1921.  
  1922. aasskkcccc
  1923.      "Askcc" is a binary  option  which  causes  you  to  be
  1924.      prompted  for  additional carbon copy recipients at the
  1925.      end of each message.  Responding with a  newline  shows
  1926.      your satisfaction with the current list.
  1927.  
  1928. aauuttoopprriinntt
  1929.      "Autoprint"  is a binary option which causes the ddeelleettee
  1930.      command to behave like ddpp --  thus,  after  deleting  a
  1931.      message,  the  next  one  will  be typed automatically.
  1932.      This is useful when quickly scanning and deleting  mes-
  1933.      sages in your mailbox.
  1934.  
  1935. ccrrtt
  1936.      The  valued  option is used as a threshold to determine
  1937.      how long a message must be before PPAAGGEERR is used to read
  1938.      it.
  1939.  
  1940. ddeebbuugg
  1941.      The  binary option "debug" causes debugging information
  1942.      to be displayed. Use of this  option  is  the  same  as
  1943.      using the --dd command line flag.
  1944.  
  1945. ddoott
  1946.      "Dot"  is a binary option which, if set, causes _M_a_i_l to
  1947.      interpret a period alone on a line as the terminator of
  1948.      the message you are sending.
  1949.  
  1950. eessccaappee
  1951.      To  allow  you to change the escape character used when
  1952.      sending mail, you can set the valued  option  "escape."
  1953.      Only  the  first  character  of  the "escape" option is
  1954.      used, and it must be doubled if it is to appear as  the
  1955.      first  character  of  a  line  of your message.  If you
  1956.      change your escape character, then ~ loses all its spe-
  1957.      cial  meaning,  and  need  no  longer be doubled at the
  1958.      beginning of a line.
  1959.  
  1960. ffoollddeerr
  1961.      The name of the directory to use for storing folders of
  1962.      messages.   If this name begins with a `/' _M_a_i_l consid-
  1963.      ers it to  be  an  absolute  pathname;  otherwise,  the
  1964.      folder  directory is found relative to your home direc-
  1965.      tory.
  1966.  
  1967. hhoolldd
  1968.      The binary option "hold" causes messages that have been
  1969.      read but not manually dealt with to be held in the sys-
  1970.      tem mailbox. This prevents  such  messages  from  being
  1971.      automatically swept into your _m_b_o_x file.
  1972.  
  1973. iiggnnoorree
  1974.      The  binary  option  "ignore"  causes RUBOUT characters
  1975.  
  1976.  
  1977.  
  1978.  
  1979.  
  1980.  
  1981.  
  1982.  
  1983.  
  1984.  
  1985. MMaaiill RReeffeerreennccee MMaannuuaall                               UUSSDD::77--3311
  1986.  
  1987.  
  1988.      from your terminal to be  ignored  and  echoed  as  @'s
  1989.      while  you  are sending mail.  RUBOUT characters retain
  1990.      their original meaning in _M_a_i_l command  mode.   Setting
  1991.      the  "ignore"  option is equivalent to supplying the --ii
  1992.      flag on the command line as described in section 6.
  1993.  
  1994. iiggnnoorreeeeooff
  1995.      An option related to "dot" is "ignoreeof"  which  makes
  1996.      _M_a_i_l  refuse to accept a control-d as the end of a mes-
  1997.      sage.  "Ignoreeof" also applies to _M_a_i_l command mode.
  1998.  
  1999. kkeeeepp
  2000.      The "keep" option causes _M_a_i_l to truncate  your  system
  2001.      mailbox  instead of deleting it when it is empty.  This
  2002.      is useful if you elect to protect your  mailbox,  which
  2003.      you would do with the shell command:
  2004.  
  2005.          chmod 600 /usr/spool/mail/yourname
  2006.  
  2007.      where  _y_o_u_r_n_a_m_e  is  your login name.  If you do not do
  2008.      this, anyone can probably read your mail, although peo-
  2009.      ple usually don't.
  2010.  
  2011. kkeeeeppssaavvee
  2012.      When  you ssaavvee a message, _M_a_i_l usually discards it when
  2013.      you qquuiitt.  To retain all saved messages, set the "keep-
  2014.      save" option.
  2015.  
  2016. mmeettoooo
  2017.      When  sending mail to an alias, _M_a_i_l makes sure that if
  2018.      you are included in the alias, that mail  will  not  be
  2019.      sent to you.  This is useful if a single alias is being
  2020.      used by all members of the group.  If however, you wish
  2021.      to  receive  a copy of all the messages you send to the
  2022.      alias, you can set the binary option "metoo."
  2023.  
  2024. nnoohheeaaddeerr
  2025.      The binary option "noheader" suppresses the printing of
  2026.      the  version  and  headers  when _M_a_i_l is first invoked.
  2027.      Setting this option is the same as using --NN on the com-
  2028.      mand line.
  2029.  
  2030. nnoossaavvee
  2031.      Normally,  when  you  abort a message with two RUBOUTs,
  2032.      _M_a_i_l copies the partial letter to the  file  "dead.let-
  2033.      ter" in your home directory.  Setting the binary option
  2034.      "nosave" prevents this.
  2035.  
  2036. RReeppllyyaallll
  2037.      Reverses the sense of _r_e_p_l_y and _R_e_p_l_y commands.
  2038.  
  2039. qquuiieett
  2040.      The binary option "quiet" suppresses  the  printing  of
  2041.  
  2042.  
  2043.  
  2044.  
  2045.  
  2046.  
  2047.  
  2048.  
  2049.  
  2050.  
  2051. UUSSDD::77--3322                               MMaaiill RReeffeerreennccee MMaannuuaall
  2052.  
  2053.  
  2054.      the  version  when  _M_a_i_l  is  first invoked, as well as
  2055.      printing the for example "Message  4:"  from  the  ttyyppee
  2056.      command.
  2057.  
  2058. rreeccoorrdd
  2059.      If  you  love  to  keep records, then the valued option
  2060.      "record" can be set to the name of a file to save  your
  2061.      outgoing  mail.   Each new message you send is appended
  2062.      to the end of the file.
  2063.  
  2064. ssccrreeeenn
  2065.      When _M_a_i_l initially  prints  the  message  headers,  it
  2066.      determines  the number to print by looking at the speed
  2067.      of your terminal.  The faster your terminal,  the  more
  2068.      it  prints.   The valued option "screen" overrides this
  2069.      calculation and specifies how many message headers  you
  2070.      want  printed.   This number is also used for scrolling
  2071.      with the zz command.
  2072.  
  2073. sseennddmmaaiill
  2074.      To use an  alternate  mail  delivery  system,  set  the
  2075.      "sendmail"  option  to the full pathname of the program
  2076.      to use.  Note:  this is not for everyone!  Most  people
  2077.      should use the default delivery system.
  2078.  
  2079. ttoopplliinneess
  2080.      The  valued  option  "toplines"  defines  the number of
  2081.      lines that the "top" command will print out instead  of
  2082.      the default five lines.
  2083.  
  2084. vveerrbboossee
  2085.      The binary option "verbose" causes _M_a_i_l to invoke send-
  2086.      mail with the --vv flag, which causes it to go into  ver-
  2087.      bose  mode and announce expansion of aliases, etc. Set-
  2088.      ting the "verbose" option  is  equivalent  to  invoking
  2089.      _M_a_i_l with the --vv flag as described in section 6.
  2090.  
  2091.  
  2092.  
  2093.  
  2094.  
  2095.  
  2096.  
  2097.  
  2098.  
  2099.  
  2100.  
  2101.  
  2102.  
  2103.  
  2104.  
  2105.  
  2106.  
  2107.  
  2108.  
  2109.  
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.  
  2117. MMaaiill RReeffeerreennccee MMaannuuaall                               UUSSDD::77--3333
  2118.  
  2119.  
  2120. 66..  CCoommmmaanndd lliinnee ooppttiioonnss
  2121.  
  2122.      This  section  describes  command line options for _M_a_i_l
  2123. and what they are used for.
  2124.  
  2125. -N   Suppress the initial printing of headers.
  2126.  
  2127. -d   Turn on debugging information.  Not of  general  inter-
  2128.      est.
  2129.  
  2130. -f file
  2131.      Show  the messages in _f_i_l_e instead of your system mail-
  2132.      box.  If _f_i_l_e is omitted, _M_a_i_l reads _m_b_o_x in your  home
  2133.      directory.
  2134.  
  2135. -i   Ignore  tty  interrupt  signals.  Useful on noisy phone
  2136.      lines, which generate spurious RUBOUT or DELETE charac-
  2137.      ters.   It's  usually  more  effective  to  change your
  2138.      interrupt character to control-c,  for  which  see  the
  2139.      _s_t_t_y shell command.
  2140.  
  2141. -n   Inhibit  reading  of  /usr/lib/Mail.rc.   Not generally
  2142.      useful, since /usr/lib/Mail.rc is usually empty.
  2143.  
  2144. -s string
  2145.      Used for sending mail.  _S_t_r_i_n_g is used as  the  subject
  2146.      of  the  message  being  composed.   If _s_t_r_i_n_g contains
  2147.      blanks, you must surround it with quote marks.
  2148.  
  2149. -u name
  2150.      Read _n_a_m_e_s_'_s mail instead of your own.  Unwitting  oth-
  2151.      ers  often neglect to protect their mailboxes, but dis-
  2152.      cretion is advised. Essentially, --uu uusseerr is a shorthand
  2153.      way of doing --ff //uussrr//ssppooooll//mmaaiill//uusseerr.
  2154.  
  2155. -v   Use  the  --vv  flag when invoking sendmail. This feature
  2156.      may also be enabled by setting  the  the  option  "ver-
  2157.      bose".
  2158.  
  2159.      The  following  command line flags are also recognized,
  2160. but are intended for use by programs invoking _M_a_i_l  and  not
  2161. for people.
  2162.  
  2163. -T file
  2164.      Arrange to print on _f_i_l_e the contents of the _a_r_t_i_c_l_e_-_i_d
  2165.      fields  of  all  messages  that  were  either  read  or
  2166.      deleted.  --TT is for the _r_e_a_d_n_e_w_s program and should NOT
  2167.      be used for reading your mail.
  2168.  
  2169. -h number
  2170.      Pass on hop count information.  _M_a_i_l will take the num-
  2171.      ber,  increment  it,  and  pass  it with --hh to the mail
  2172.      delivery system.  --hh only has effect when sending  mail
  2173.  
  2174.  
  2175.  
  2176.  
  2177.  
  2178.  
  2179.  
  2180.  
  2181.  
  2182.  
  2183. UUSSDD::77--3344                               MMaaiill RReeffeerreennccee MMaannuuaall
  2184.  
  2185.  
  2186.      and is used for network mail forwarding.
  2187.  
  2188. -r name
  2189.      Used  for  network  mail forwarding:  interpret _n_a_m_e as
  2190.      the sender of the message.  The _n_a_m_e and --rr are  simply
  2191.      sent  along  to  the  mail delivery system.  Also, _M_a_i_l
  2192.      will wait for the message to be  sent  and  return  the
  2193.      exit status.  Also restricts formatting of message.
  2194.  
  2195.      Note  that  --hh  and --rr, which are for network mail for-
  2196. warding, are not used in practice since mail  forwarding  is
  2197. now handled separately.  They may disappear soon.
  2198.  
  2199. 77..  FFoorrmmaatt ooff mmeessssaaggeess
  2200.  
  2201.      This  section  describes  the format of messages.  Mes-
  2202. sages begin with a _f_r_o_m line, which  consists  of  the  word
  2203. "From"  followed  by a user name, followed by anything, fol-
  2204. lowed by a date in the format returned by the _c_t_i_m_e  library
  2205. routine described in section 3 of the Unix Programmer's Man-
  2206. ual.  A possible _c_t_i_m_e format date is:
  2207.  
  2208.     Tue Dec  1 10:58:23 1981
  2209.  
  2210. The _c_t_i_m_e date may be optionally followed by a single  space
  2211. and  a  time  zone indication, which should be three capital
  2212. letters, such as PDT.
  2213.  
  2214.      Following the _f_r_o_m line are zero or more  _h_e_a_d_e_r  _f_i_e_l_d
  2215. lines.  Each header field line is of the form:
  2216.  
  2217.     name: information
  2218.  
  2219. _N_a_m_e  can  be  anything,  but only certain header fields are
  2220. recognized as having any  meaning.   The  recognized  header
  2221. fields  are:  _a_r_t_i_c_l_e_-_i_d,  _b_c_c,  _c_c, _f_r_o_m, _r_e_p_l_y_-_t_o, _s_e_n_d_e_r,
  2222. _s_u_b_j_e_c_t, and _t_o.  Other header fields are  also  significant
  2223. to other systems; see, for example, the current Arpanet mes-
  2224. sage standard for much more information on  this  topic.   A
  2225. header field can be continued onto following lines by making
  2226. the first character on the following line  a  space  or  tab
  2227. character.
  2228.  
  2229.      If  any headers are present, they must be followed by a
  2230. blank line.  The part that follows is called the _b_o_d_y of the
  2231. message, and must be ASCII text, not containing null charac-
  2232. ters.  Each line in the message body must be no longer  than
  2233. 512  characters and terminated with an ASCII newline charac-
  2234. ter.  If binary data must be passed through the mail system,
  2235. it  is suggested that this data be encoded in a system which
  2236. encodes six bits into a  printable  character  (i.e.:  uuen-
  2237. code).   For example, one could use the upper and lower case
  2238. letters, the digits, and the characters comma and period  to
  2239.  
  2240.  
  2241.  
  2242.  
  2243.  
  2244.  
  2245.  
  2246.  
  2247.  
  2248.  
  2249. MMaaiill RReeffeerreennccee MMaannuuaall                               UUSSDD::77--3355
  2250.  
  2251.  
  2252. make  up  the  64  characters.   Then, one can send a 16-bit
  2253. binary number as three characters.  These characters  should
  2254. be  packed  into lines, preferably lines about 70 characters
  2255. long as long lines are transmitted more efficiently.
  2256.  
  2257.      The message delivery system always adds a blank line to
  2258. the  end  of  each  message.   This  blank  line must not be
  2259. deleted.
  2260.  
  2261.      The UUCP message delivery system sometimes adds a blank
  2262. line  to  the  end  of  a  message each time it is forwarded
  2263. through a machine.
  2264.  
  2265.      It should be noted that some network  transport  proto-
  2266. cols enforce limits to the lengths of messages.
  2267.  
  2268.  
  2269.  
  2270.  
  2271.  
  2272.  
  2273.  
  2274.  
  2275.  
  2276.  
  2277.  
  2278.  
  2279.  
  2280.  
  2281.  
  2282.  
  2283.  
  2284.  
  2285.  
  2286.  
  2287.  
  2288.  
  2289.  
  2290.  
  2291.  
  2292.  
  2293.  
  2294.  
  2295.  
  2296.  
  2297.  
  2298.  
  2299.  
  2300.  
  2301.  
  2302.  
  2303.  
  2304.  
  2305.  
  2306.  
  2307.  
  2308.  
  2309.  
  2310.  
  2311.  
  2312.  
  2313.  
  2314.  
  2315. UUSSDD::77--3366                               MMaaiill RReeffeerreennccee MMaannuuaall
  2316.  
  2317.  
  2318. 88..  GGlloossssaarryy
  2319.  
  2320.      This  section contains the definitions of a few phrases
  2321. peculiar to _M_a_i_l.
  2322.  
  2323. _a_l_i_a_s
  2324.      An alternative name for a person or list of people.
  2325.  
  2326. _f_l_a_g An option, given on the command line of _M_a_i_l,  prefaced
  2327.      with a -.  For example, --ff is a flag.
  2328.  
  2329. _h_e_a_d_e_r _f_i_e_l_d
  2330.      At  the  beginning  of a message, a line which contains
  2331.      information that is part of the structure of  the  mes-
  2332.      sage.   Popular  header fields include _t_o, _c_c, and _s_u_b_-
  2333.      _j_e_c_t.
  2334.  
  2335. _m_a_i_l
  2336.      A collection of messages.  Often used  in  the  phrase,
  2337.      "Have you read your mail?"
  2338.  
  2339. _m_a_i_l_b_o_x
  2340.      The  place  where your mail is stored, typically in the
  2341.      directory /usr/spool/mail.
  2342.  
  2343. _m_e_s_s_a_g_e
  2344.      A single letter from someone, initially stored in  your
  2345.      _m_a_i_l_b_o_x.
  2346.  
  2347. _m_e_s_s_a_g_e _l_i_s_t
  2348.      A  string  used  in  _M_a_i_l  command  mode  to describe a
  2349.      sequence of messages.
  2350.  
  2351. _o_p_t_i_o_n
  2352.      A piece of special purpose information used  to  tailor
  2353.      _M_a_i_l to your taste.  Options are specified with the sseett
  2354.      command.
  2355.  
  2356.  
  2357.  
  2358.  
  2359.  
  2360.  
  2361.  
  2362.  
  2363.  
  2364.  
  2365.  
  2366.  
  2367.  
  2368.  
  2369.  
  2370.  
  2371.  
  2372.  
  2373.  
  2374.  
  2375.  
  2376.  
  2377.  
  2378.  
  2379.  
  2380.  
  2381. MMaaiill RReeffeerreennccee MMaannuuaall                               UUSSDD::77--3377
  2382.  
  2383.  
  2384. 99..  SSuummmmaarryy ooff ccoommmmaannddss,, ooppttiioonnss,, aanndd eessccaappeess
  2385.  
  2386.      This section gives a quick summary  of  the  _M_a_i_l  com-
  2387. mands, binary and valued options, and tilde escapes.
  2388.  
  2389.      The following table describes the commands:
  2390.  
  2391.  Command                             _D_e_s_c_r_i_p_t_i_o_n
  2392. --------------------------------------------------------------------------
  2393. ++            Same as nneexxtt
  2394. --            Back up to previous message
  2395. ??            Print brief summary of _M_a_i_l commands
  2396. !!            Single command escape to shell
  2397. PPrriinntt        Type message with ignored fields
  2398. RReeppllyy        Reply to author of message only
  2399. RReessppoonndd      Same as RReeppllyy
  2400. TTyyppee         Type message with ignored fields
  2401. aalliiaass        Define an alias as a set of user names
  2402. aalltteerrnnaatteess   List other names you are known by
  2403. cchhddiirr        Change working directory, home by default
  2404. ccooppyy         Copy a message to a file or folder
  2405. ddeelleettee       Delete a list of messages
  2406. ddpp           Same as ddtt
  2407. ddtt           Delete current message, type next message
  2408. eeddiitt         Edit a list of messages
  2409. eellssee         Start of else part of conditional; see iiff
  2410. eennddiiff        End of conditional statement; see iiff
  2411. eexxiitt         Leave mail without changing anything
  2412. ffiillee         Interrogate/change current mail file
  2413. ffoollddeerr       Same as ffiillee
  2414. ffoollddeerrss      List the folders in your folder directory
  2415. ffrroomm         List headers of a list of messages
  2416. hheeaaddeerrss      List current window of messages
  2417. hheellpp         Same as ??
  2418. hhoolldd         Same as pprreesseerrvvee
  2419. iiff           Conditional execution of _M_a_i_l commands
  2420. iiggnnoorree       Set/examine list of ignored header fields
  2421. lliisstt         List valid _M_a_i_l commands
  2422. llooccaall        List other names for the local host
  2423. mmaaiill         Send mail to specified names
  2424. mmbbooxx         Arrange to save a list of messages in _m_b_o_x
  2425. nneexxtt         Go to next message and type it
  2426. pprreesseerrvvee     Arrange to leave list of messages in system mailbox
  2427. pprriinntt        Print messages
  2428. qquuiitt         Leave _M_a_i_l; update system mailbox, _m_b_o_x as appropriate
  2429. rreeppllyy        Compose a reply to a message
  2430. rreessppoonndd      Same as rreeppllyy
  2431. rreettaaiinn       Supersedes iiggnnoorree
  2432. ssaavvee         Append messages, headers included, on a file
  2433. sseett          Set binary or valued options
  2434.  
  2435.  
  2436.  
  2437.  
  2438.  
  2439.  
  2440.  
  2441.  
  2442.  
  2443.  
  2444.  
  2445.  
  2446.  
  2447. UUSSDD::77--3388                               MMaaiill RReeffeerreennccee MMaannuuaall
  2448.  
  2449.  
  2450. sshheellll        Invoke an interactive shell
  2451. ssiizzee         Prints out size of message list
  2452. ssoouurrccee       Read _m_a_i_l commands from a file
  2453. ttoopp          Print first so many (5 by default) lines of list of messages
  2454. ttyyppee         Same as pprriinntt
  2455. uunnddeelleettee     Undelete list of messages
  2456. uunnrreeaadd       Marks list of messages as not been read
  2457. uunnsseett        Undo the operation of a sseett
  2458. vviissuuaall       Invoke visual editor on a list of messages
  2459. wwrriittee        Append messages to a file, don't include headers
  2460. xxiitt          Same as eexxiitt
  2461. zz            Scroll to next/previous screenful of headers
  2462.  
  2463.  
  2464.  
  2465.  
  2466.  
  2467.  
  2468.  
  2469.  
  2470.  
  2471.  
  2472.  
  2473.  
  2474.  
  2475.  
  2476.  
  2477.  
  2478.  
  2479.  
  2480.  
  2481.  
  2482.  
  2483.  
  2484.  
  2485.  
  2486.  
  2487.  
  2488.  
  2489.  
  2490.  
  2491.  
  2492.  
  2493.  
  2494.  
  2495.  
  2496.  
  2497.  
  2498.  
  2499.  
  2500.  
  2501.  
  2502.  
  2503.  
  2504.  
  2505.  
  2506.  
  2507.  
  2508.  
  2509.  
  2510.  
  2511.  
  2512.  
  2513. MMaaiill RReeffeerreennccee MMaannuuaall                               UUSSDD::77--3399
  2514.  
  2515.  
  2516.  
  2517.      The  following  table  describes the options.  Each
  2518. option is shown as being either a binary or  valued  op-
  2519. tion.
  2520.  
  2521.  Option      _T_y_p_e                         _D_e_s_c_r_i_p_t_i_o_n
  2522. ---------------------------------------------------------------------------
  2523. EDITOR      _v_a_l_u_e_d   Pathname of editor for ~e and eeddiitt
  2524. PAGER       _v_a_l_u_e_d   Pathname of paginator for PPrriinntt, pprriinntt, TTyyppee and ttyyppee
  2525. SHELL       _v_a_l_u_e_d   Pathname of shell for sshheellll, ~! and !!
  2526. VISUAL      _v_a_l_u_e_d   Pathname of screen editor for ~v, vviissuuaall
  2527. append      _b_i_n_a_r_y   Always append messages to end of _m_b_o_x
  2528. ask         _b_i_n_a_r_y   Prompt user for Subject: field when sending
  2529. askcc       _b_i_n_a_r_y   Prompt user for additional Cc's at end of message
  2530. autoprint   _b_i_n_a_r_y   Print next message after ddeelleettee
  2531. crt         _v_a_l_u_e_d   Minimum number of lines before using PPAAGGEERR
  2532. debug       _b_i_n_a_r_y   Print out debugging information
  2533. dot         _b_i_n_a_r_y   Accept . alone on line to terminate message input
  2534. escape      _v_a_l_u_e_d   Escape character to be used instead of  ~
  2535. folder      _v_a_l_u_e_d   Directory to store folders in
  2536. hold        _b_i_n_a_r_y   Hold messages in system mailbox by default
  2537. ignore      _b_i_n_a_r_y   Ignore RUBOUT while sending mail
  2538. ignoreeof   _b_i_n_a_r_y   Don't terminate letters/command input with DD
  2539. keep        _b_i_n_a_r_y   Don't unlink system mailbox when empty
  2540. keepsave    _b_i_n_a_r_y   Don't delete ssaavveed messages by default
  2541. metoo       _b_i_n_a_r_y   Include sending user in aliases
  2542. noheader    _b_i_n_a_r_y   Suppress initial printing of version and headers
  2543. nosave      _b_i_n_a_r_y   Don't save partial letter in _d_e_a_d_._l_e_t_t_e_r
  2544. quiet       _b_i_n_a_r_y   Suppress printing of _M_a_i_l version and message numbers
  2545. record      _v_a_l_u_e_d   File to save all outgoing mail in
  2546. screen      _v_a_l_u_e_d   Size of window of message headers for zz, etc.
  2547. sendmail    _v_a_l_u_e_d   Choose alternate mail delivery system
  2548. toplines    _v_a_l_u_e_d   Number of lines to print in ttoopp
  2549. verbose     _b_i_n_a_r_y   Invoke sendmail with the --vv flag
  2550.  
  2551.  
  2552.  
  2553.  
  2554.  
  2555.  
  2556.  
  2557.  
  2558.  
  2559.  
  2560.  
  2561.  
  2562.  
  2563.  
  2564.  
  2565.  
  2566.  
  2567.  
  2568.  
  2569.  
  2570.  
  2571.  
  2572.  
  2573.  
  2574.  
  2575.  
  2576.  
  2577.  
  2578.  
  2579. UUSSDD::77--4400                               MMaaiill RReeffeerreennccee MMaannuuaall
  2580.  
  2581.  
  2582.  
  2583.      The  following  table  summarizes the tilde escapes
  2584. available while sending mail.
  2585.  
  2586. Escape    _A_r_g_u_m_e_n_t_s                   _D_e_s_c_r_i_p_t_i_o_n
  2587. ----------------------------------------------------------------
  2588. ~!       _c_o_m_m_a_n_d        Execute shell command
  2589. ~b       _n_a_m_e _._._.       Add names to "blind" Cc: list
  2590. ~c       _n_a_m_e _._._.       Add names to Cc: field
  2591. ~d                      Read _d_e_a_d_._l_e_t_t_e_r into message
  2592. ~e                      Invoke text editor on partial message
  2593. ~f       _m_e_s_s_a_g_e_s       Read named messages
  2594. ~h                      Edit the header fields
  2595. ~m       _m_e_s_s_a_g_e_s       Read named messages, right shift by tab
  2596. ~p                      Print message entered so far
  2597. ~q                      Abort entry of letter; like RUBOUT
  2598. ~r       _f_i_l_e_n_a_m_e       Read file into message
  2599. ~s       _s_t_r_i_n_g         Set Subject: field to _s_t_r_i_n_g
  2600. ~t       _n_a_m_e _._._.       Add names to To: field
  2601. ~v                      Invoke screen editor on message
  2602. ~w       _f_i_l_e_n_a_m_e       Write message on file
  2603. ~|       _c_o_m_m_a_n_d        Pipe message through _c_o_m_m_a_n_d
  2604. ~:       _M_a_i_l _c_o_m_m_a_n_d   Execute a _M_a_i_l command
  2605. ~~       _s_t_r_i_n_g         Quote a ~ in front of _s_t_r_i_n_g
  2606.  
  2607.  
  2608.  
  2609.  
  2610.      The following table shows the  command  line  flags
  2611. that _M_a_i_l accepts:
  2612.  
  2613.   Flag                        Description
  2614. ------------------------------------------------------------
  2615. -N           Suppress the initial printing of headers
  2616. -T _f_i_l_e      Article-id's of read/deleted messages to _f_i_l_e
  2617. -d           Turn on debugging
  2618. -f _f_i_l_e      Show messages in _f_i_l_e or _~_/_m_b_o_x
  2619. -h _n_u_m_b_e_r    Pass on hop count for mail forwarding
  2620. -i           Ignore tty interrupt signals
  2621. -n           Inhibit reading of /usr/lib/Mail.rc
  2622. -r _n_a_m_e      Pass on _n_a_m_e for mail forwarding
  2623. -s _s_t_r_i_n_g    Use _s_t_r_i_n_g as subject in outgoing mail
  2624. -u _n_a_m_e      Read _n_a_m_e_'_s mail instead of your own
  2625. -v           Invoke sendmail with the --vv flag
  2626.  
  2627.  
  2628.  
  2629. Notes: --TT, --dd, --hh, and --rr are not for human use.
  2630.  
  2631.  
  2632.  
  2633.  
  2634.  
  2635.  
  2636.  
  2637.  
  2638.  
  2639.  
  2640.  
  2641.